#include "gedit.h"



GEdit::GEdit(GUI *parent) : GUI(parent) {
	initGUI();
}


GEdit::~GEdit() {
	GUI::GUIManager.unregisterGUI(this);
}


void GEdit::initGUI() {
	GRect geometry;
	geometry.x = CW_USEDEFAULT;
	geometry.y = CW_USEDEFAULT;
	geometry.width = 120;
	geometry.height = 21;

	createGUI(WS_EX_CLIENTEDGE, _T("Edit"), NULL, WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL, &geometry, (HMENU)GUI::GUIManager.getGUICounter(), NULL);
	GUI::GUIManager.registerGUI(this);
}
